package com.qf.service.impl;

import com.qf.entity.ReservationInfo;
import com.qf.entity.ReservationInfoDTO;
import com.qf.entity.ReservationInfoVO;
import com.qf.mapper.ReservationInfoMapper;
import com.qf.service.ReservationInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName: ReservationInfoServiceImpl
 * @Author: WangHao
 * @Date: 2025/4/29 11:23
 * @Description:
 * @Version: 1.0
 */
@Service
public class ReservationInfoServiceImpl implements ReservationInfoService {

    @Autowired
    private ReservationInfoMapper reservationInfoMapper;

    @Override
    public List<ReservationInfo> findAll(ReservationInfoDTO reservationInfoDTO) {
        return reservationInfoMapper.findAll(reservationInfoDTO);
    }

    @Override
    public boolean addReservationInfo(ReservationInfoDTO reservationInfoDTO) {
        return reservationInfoMapper.addReservationInfo(reservationInfoDTO);
    }

    @Override
    public boolean updateReservationInfo(ReservationInfoDTO reservationInfoDTO) {
        return reservationInfoMapper.updateReservationInfo(reservationInfoDTO);
    }

    @Override
    public List<ReservationInfoVO> findReservationInfoType() {
        return reservationInfoMapper.findReservationInfoType();
    }

    @Override
    public boolean delReservationInfoById(Integer id) {
        return reservationInfoMapper.delReservationInfoById(id);
    }

    @Override
    public boolean delReservationInfoByIds(Integer[] ids) {
        return reservationInfoMapper.delReservationInfoByIds(ids);
    }
}
